//
// Created on 2024/8/25.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#ifndef ISSUETEST_ARKUI_CANVAS_H
#define ISSUETEST_ARKUI_CANVAS_H

#include "../node/arkui_common_node.h"

namespace NativeArkUI {
class NativeCanvas : public ArkUICommonNode {
public:
    NativeCanvas() : ArkUICommonNode(ARKUI_NODE_CUSTOM) {}

    /**
     * 强制标记当前节点需要重新测算，布局或者绘制
     */
    void Refresh() {
        // 自定义绘制属性变更需要主动通知框架。
        arkUINativeNodeApi->markDirty(nodeHandle, NODE_NEED_RENDER);
    }
};
} // namespace NativeArkUI

#endif // ISSUETEST_ARKUI_CANVAS_H
